<h1>Mijn declaraties</h1>

<% form_tag :action => 'my' do %>
  <%= text_field_tag :search, @search  %>
  <%= submit_tag "Zoeken" %>
<% end %>

<table cellspacing="10" cellpadding="0" width="100%">
  <tr>
	<th>Datum</th>
	<th>Omschrijving:</th>
	<th>Bedrag</th>
	<th>Wie betalen mee?</th>
  </tr>
  
  <% if @my_declarations.length < 1 %>

  <tr>
	<td colspan="5">Geen declaraties van jou in het systeem</td>
  </tr>

  <% else %>
  
  <% for declaration in @my_declarations %>
	<%= render :partial => "declarations/my_declaration", :object => declaration %>
  <% end %>
<% end %>
</table>
